package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ReqKnowledgeBaseSearchVo implements Serializable {

    @ApiModelProperty(value = "知识库类型，1:热门知识，2:知识贡献", required = true, name = "type", example = "1")
    @NotNull(message = "知识库类型不能为空")
    @Max(value = 2, message = "知识库类型最大值为2")
    @Min(value = 1, message = "知识库类型最小值为1")
    private Integer type;

}
